package com.zhen.lucene.ik;

import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.Tokenizer;

public class IKAnalyzer6x extends Analyzer{

    private boolean useSmart;

    public boolean useSmart(){
        return this.useSmart;
    }

    public void setUseSmart(boolean useSmart){
        this.useSmart = useSmart;
    }

    public IKAnalyzer6x(){
        this(false);
    }

    public IKAnalyzer6x(boolean useSmart){
        super();
        this.useSmart = useSmart;
    }

    protected TokenStreamComponents createComponents(String s) {
        Tokenizer _IKTokenizer = new IKTokenizer6x(this.useSmart());
        return new TokenStreamComponents(_IKTokenizer);
    }
}
